package com.palrevo.data.dao;

/**
 * 
 * @author AAsha
 *
 */
public class DAOFactory {
	
	/**
	 * 
	 */
	private DAOFactory(){
	}
	
	/**
	 * 
	 * @author AAsha
	 *
	 */
	private static class SingletonHolder{
		private static DAOFactory factory = new DAOFactory(); 
	}
	
	/**
	 * 
	 * @return DAOFactory
	 */
	public static DAOFactory getInstance(){
		return SingletonHolder.factory;
	}
	
	/**
	 * 
	 * @return DAO
	 */
	public DAO createDao(){
		
		DAO dao = new DAOImpl();
		
		return dao;
	}

}
